package com.launchrock.projectadvisor.skeleton_BGA;

import android.util.Log;

public class Tile {
	
	private static int mHeight, mWidth;
	private int mXPos, mYPos, mXCenter, mYCenter;
	private int rExit=0, lExit=0, uExit=0, dExit=0;
	
	public Tile()
	{
		
	}
	
	public static int getHeight()
	{
		return mHeight;
	}
	
	public static int getWidth()
	{
		return mWidth;
	}
	
	public static void setSize(int sHeight, int sWidth)
	{
		mWidth=sWidth/30;
		mHeight=sHeight/37;
	}
	public void setPosition(int x, int y)
	{
		mXPos=x;
		mYPos=y;
		setTileCenter();		
	}
	
	public void setTileCenter()
	{
		mXCenter=mXPos+mWidth/2;
		mYCenter=mYPos+mHeight/2;		
	}
	
	public int getTileCenterX()
	{
		return mXCenter;
	}
	
	public int getTileCenterY()
	{
		return mYCenter;
	}
	
	
	public void setExits(int left, int up, int right, int down)
	{
		lExit=left;
		uExit=up;
		rExit=right;
		dExit=down;
	}
	
	public int getLExit()
	{
		return lExit;
	}
	
	public int getUExit()
	{
		return uExit;
	}
	
	public int getRExit()
	{
		return rExit;
	}
	
	public int getDExit()
	{
		return dExit;
	}
	
	 
	
}
